# encoding:utf-8
from flask import Flask, render_template, url_for, request, json,jsonify
from flask_sqlalchemy import SQLAlchemy
import os

app = Flask(__name__,template_folder="templates/build",static_folder="templates/build",static_url_path="/static")
basedir = os.path.abspath(os.path.dirname(__file__))
app.config['SQLALCHEMY_DATABASE_URI'] =  'sqlite:///' + os.path.join(basedir, 'stock.db')
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True
db = SQLAlchemy(app)
#设置编码
app.config['JSON_AS_ASCII'] = False
